#include "LegData.h"


LegData::LegData() {
    Length = 0.0;
}

/*!
    \brief Initializes the LegData

    This is a convenance constructor.  vector is a non-unit length
    vector.  The non-unit length vector's length and direction will
    be extracted.

    \param vector - The vector from the From to To, non-unit length
    \param shotDirection - Default FRONT_SITE
  */
LegData::LegData(const Vec3& vector, LegData::Direction shotDirection = FRONT_SITE ) {
    Length = vector.Length();
    UnitVector = vector.Normalize();
    Dir = shotDirection;
}

/*!
    \brief Initializes the LegData

    NEED DOCUMENTATION

    \param vetor - The unit vector of the shot
    \param length - The length of the vector
    \param shotDiretion - Default FRONT_SITE
  */
LegData::LegData(const Vec3& unitVector, double length, LegData::Direction shotDirection = FRONT_SITE ) {
    Length = length;
    UnitVector = unitVector;
    Dir = Direction;
}


